package com.gzbugu.bugusys.fields;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.gzbugu.bugusys.dao.IBaseDAO;
import com.gzbugu.bugusys.vo.Type;

/**
 * 数据库层字段
 * 
 * @author gauze
 * 
 */
@Component
public class DatabaseFields {
	@Resource(name="baseDAO")
	private IBaseDAO baseDAO;

	public Type ATTENDANCE_TYPE_LATE;// 考勤类型：迟到18
	public Type ATTENDANCE_TYPE_LEAVEEARLY;// 考勤类型：早退19
	public Type ATTENDANCE_TYPE_LEAVE;// 考勤类型：请假20
	public Type ATTENDANCE_TYPE_ABSENTEEISM;// 考勤类型：旷工21
	public Type ATTENDANCE_TYPE_ORTHERS;// 考勤类型：其他4
	public Type CO_CERTIFICATE_TYPE_BUSINESS;// 公司资质证书类型：营业执照5
	public Type CO_CERTIFICATE_TYPE_CODE;// 公司资质证书类型：组织机构代码证6
	public Type CO_CERTIFICATE_TYPE_ORTHERS;// 公司资质证书类型：其他4
	public Type CONTRACT_SERVICE_TYPE_INTERN;// 公司劳务合同类型：实习合同7
	public Type CONTRACT_SERVICE_TYPE_TRIAL;// 公司劳务合同类型：试用合同8
	public Type CONTRACT_SERVICE_TYPE_FORMAL;// 公司劳务合同类型：正式合同9
	public Type REIMBURSE_TYPE_OFFICESUPPLIES;// 报销类型：办公用品10
	public Type REIMBURSE_TYPE_FUNCTIONAL;// 报销类型：业务费用11
	public Type REIMBURSE_TYPE_ENTERTAINMENT;// 报销类型：招待费12
	public Type REIMBURSE_TYPE_ORTHERS;// 报销类型：其他4
	public Type STAFF_DOCUMENTS_TYPE_IDCARD;// 证件类型：身份证13
	public Type STAFF_DOCUMENTS_TYPE_GRADUATION;// 证件类型：毕业证书14
	public Type STAFF_DOCUMENTS_TYPE_ORTHERS;// 证件类型：其他4
	public Type STAFF_SEX_MALE;// 性别：男2
	public Type STAFF_SEX_FEMAILE;// 性别：女3
	public Type TRAVEL_TYPE_CITY;// 差旅类型：市内出差15
	public Type TRAVEL_TYPE_LONG;// 差旅类型：长途出差16
	public Type TRAVEL_TYPE_POINT;// 差旅类型：驻点出差17
	public Type TRAVEL_TYPE_ORTHERS;// 差旅类型：其他4
	public Type TRUEFALSE_TRUE;// 是、正确1
	public Type TRUEFALSE_FALSE;// 否、错误、非0

	public Type getATTENDANCE_TYPE_LATE() {
		return ATTENDANCE_TYPE_LATE = (Type) baseDAO.findById(new Short((short) 18),
				com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getATTENDANCE_TYPE_LEAVEEARLY() {
		return ATTENDANCE_TYPE_LEAVEEARLY = (Type) baseDAO
				.findById( new Short((short) 19),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getATTENDANCE_TYPE_LEAVE() {
		return ATTENDANCE_TYPE_LEAVE = (Type) baseDAO
				.findById( new Short((short) 20),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getATTENDANCE_TYPE_ABSENTEEISM() {
		return ATTENDANCE_TYPE_ABSENTEEISM = (Type) baseDAO
				.findById( new Short((short) 21),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getATTENDANCE_TYPE_ORTHERS() {
		return ATTENDANCE_TYPE_ORTHERS = (Type) baseDAO
		.findById( new Short((short) 4),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getCO_CERTIFICATE_TYPE_BUSINESS() {
		return CO_CERTIFICATE_TYPE_BUSINESS = (Type) baseDAO
				.findById( new Short((short) 5),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getCO_CERTIFICATE_TYPE_CODE() {
		return CO_CERTIFICATE_TYPE_CODE = (Type) baseDAO
				.findById( new Short((short) 6),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getCO_CERTIFICATE_TYPE_ORTHERS() {
		return CO_CERTIFICATE_TYPE_ORTHERS = (Type) baseDAO
		.findById( new Short((short) 4),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getCONTRACT_SERVICE_TYPE_INTERN() {
		return CONTRACT_SERVICE_TYPE_INTERN = (Type) baseDAO
				.findById( new Short((short) 7),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getCONTRACT_SERVICE_TYPE_TRIAL() {
		return CONTRACT_SERVICE_TYPE_TRIAL = (Type) baseDAO
				.findById( new Short((short) 8),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getCONTRACT_SERVICE_TYPE_FORMAL() {
		return CONTRACT_SERVICE_TYPE_FORMAL = (Type) baseDAO
		.findById( new Short((short) 9),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getREIMBURSE_TYPE_OFFICESUPPLIES() {
		return REIMBURSE_TYPE_OFFICESUPPLIES = (Type) baseDAO
				.findById( new Short((short) 10),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getREIMBURSE_TYPE_FUNCTIONAL() {
		return REIMBURSE_TYPE_FUNCTIONAL = (Type) baseDAO
				.findById( new Short((short) 11),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getREIMBURSE_TYPE_ENTERTAINMENT() {
		return REIMBURSE_TYPE_ENTERTAINMENT = (Type) baseDAO
				.findById( new Short((short) 12),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getREIMBURSE_TYPE_ORTHERS() {
		return REIMBURSE_TYPE_ORTHERS = (Type) baseDAO
		.findById(new Short((short) 4),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getSTAFF_DOCUMENTS_TYPE_IDCARD() {
		return STAFF_DOCUMENTS_TYPE_IDCARD = (Type) baseDAO
				.findById(new Short((short) 13),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getSTAFF_DOCUMENTS_TYPE_GRADUATION() {
		return STAFF_DOCUMENTS_TYPE_GRADUATION = (Type) baseDAO
				.findById(new Short((short) 14),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getSTAFF_DOCUMENTS_TYPE_ORTHERS() {
		return STAFF_DOCUMENTS_TYPE_ORTHERS = (Type) baseDAO
				.findById(new Short((short) 4),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getSTAFF_SEX_MALE() {
		return STAFF_SEX_MALE = (Type) baseDAO.findById(new Short((short) 2),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getSTAFF_SEX_FEMAILE() {
		return STAFF_SEX_FEMAILE = (Type) baseDAO.findById(new Short((short) 3),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getTRAVEL_TYPE_CITY() {
		return TRAVEL_TYPE_CITY = (Type) baseDAO.findById(new Short((short) 15),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getTRAVEL_TYPE_LONG() {
		return TRAVEL_TYPE_LONG = (Type) baseDAO.findById(new Short((short) 16),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getTRAVEL_TYPE_POINT() {
		return TRAVEL_TYPE_POINT = (Type) baseDAO.findById(new Short((short) 17),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getTRAVEL_TYPE_ORTHERS() {
		return TRAVEL_TYPE_ORTHERS = (Type) baseDAO.findById(new Short((short) 4),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getTRUEFALSE_TRUE() {
		return TRUEFALSE_TRUE = (Type) baseDAO.findById( new Short((short) 1),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}

	public Type getTRUEFALSE_FALSE() {
		return TRUEFALSE_FALSE = (Type) baseDAO.findById(new Short((short) 0),com.gzbugu.bugusys.fields.VoClasseFields.TYPE);
	}
}
